package com.ttj.domain.oracle.gen;

import java.io.Serializable;

public class SuperSysconfSellCategory implements Serializable {
    /**
     * id
     */
    private Integer id;

    /**
     * 总类
     */
    private String oneCategory;

    /**
     * 二类
     */
    private String twoCategory;

    /**
     * 细类
     */
    private String detailCategory;

    /**
     * 价格
     */
    private Double price;

    /**
     * 1--销售；2-物料
     */
    private Integer type;

    /**
     * 最低价格
     */
    private Double lowPrice;

    /**
     * 销售折扣
     */
    private Double discount;

    /**
     * 奖励系数
     */
    private Double award;

    private String code;

    /**
     * 单位；1-个；0-公斤
     */
    private Integer uint;

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    public Integer getId() {
        return id;
    }

    /**
     * id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 总类
     */
    public String getOneCategory() {
        return oneCategory;
    }

    /**
     * 总类
     */
    public void setOneCategory(String oneCategory) {
        this.oneCategory = oneCategory;
    }

    /**
     * 二类
     */
    public String getTwoCategory() {
        return twoCategory;
    }

    /**
     * 二类
     */
    public void setTwoCategory(String twoCategory) {
        this.twoCategory = twoCategory;
    }

    /**
     * 细类
     */
    public String getDetailCategory() {
        return detailCategory;
    }

    /**
     * 细类
     */
    public void setDetailCategory(String detailCategory) {
        this.detailCategory = detailCategory;
    }

    /**
     * 价格
     */
    public Double getPrice() {
        return price;
    }

    /**
     * 价格
     */
    public void setPrice(Double price) {
        this.price = price;
    }

    /**
     * 1--销售；2-物料
     */
    public Integer getType() {
        return type;
    }

    /**
     * 1--销售；2-物料
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * 最低价格
     */
    public Double getLowPrice() {
        return lowPrice;
    }

    /**
     * 最低价格
     */
    public void setLowPrice(Double lowPrice) {
        this.lowPrice = lowPrice;
    }

    /**
     * 销售折扣
     */
    public Double getDiscount() {
        return discount;
    }

    /**
     * 销售折扣
     */
    public void setDiscount(Double discount) {
        this.discount = discount;
    }

    /**
     * 奖励系数
     */
    public Double getAward() {
        return award;
    }

    /**
     * 奖励系数
     */
    public void setAward(Double award) {
        this.award = award;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 单位；1-个；0-公斤
     */
    public Integer getUint() {
        return uint;
    }

    /**
     * 单位；1-个；0-公斤
     */
    public void setUint(Integer uint) {
        this.uint = uint;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", oneCategory=").append(oneCategory);
        sb.append(", twoCategory=").append(twoCategory);
        sb.append(", detailCategory=").append(detailCategory);
        sb.append(", price=").append(price);
        sb.append(", type=").append(type);
        sb.append(", lowPrice=").append(lowPrice);
        sb.append(", discount=").append(discount);
        sb.append(", award=").append(award);
        sb.append(", code=").append(code);
        sb.append(", uint=").append(uint);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SuperSysconfSellCategory other = (SuperSysconfSellCategory) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getOneCategory() == null ? other.getOneCategory() == null : this.getOneCategory().equals(other.getOneCategory()))
            && (this.getTwoCategory() == null ? other.getTwoCategory() == null : this.getTwoCategory().equals(other.getTwoCategory()))
            && (this.getDetailCategory() == null ? other.getDetailCategory() == null : this.getDetailCategory().equals(other.getDetailCategory()))
            && (this.getPrice() == null ? other.getPrice() == null : this.getPrice().equals(other.getPrice()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getLowPrice() == null ? other.getLowPrice() == null : this.getLowPrice().equals(other.getLowPrice()))
            && (this.getDiscount() == null ? other.getDiscount() == null : this.getDiscount().equals(other.getDiscount()))
            && (this.getAward() == null ? other.getAward() == null : this.getAward().equals(other.getAward()))
            && (this.getCode() == null ? other.getCode() == null : this.getCode().equals(other.getCode()))
            && (this.getUint() == null ? other.getUint() == null : this.getUint().equals(other.getUint()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getOneCategory() == null) ? 0 : getOneCategory().hashCode());
        result = prime * result + ((getTwoCategory() == null) ? 0 : getTwoCategory().hashCode());
        result = prime * result + ((getDetailCategory() == null) ? 0 : getDetailCategory().hashCode());
        result = prime * result + ((getPrice() == null) ? 0 : getPrice().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getLowPrice() == null) ? 0 : getLowPrice().hashCode());
        result = prime * result + ((getDiscount() == null) ? 0 : getDiscount().hashCode());
        result = prime * result + ((getAward() == null) ? 0 : getAward().hashCode());
        result = prime * result + ((getCode() == null) ? 0 : getCode().hashCode());
        result = prime * result + ((getUint() == null) ? 0 : getUint().hashCode());
        return result;
    }
}